Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package the jar analyzers #5290

Merged
merged 25 commits into from
Mar 12, 2024
Merged

Conversation

ugras-ergun-sonarsource
Copy link
Contributor

Fixes #5283

@@ -1550,9 +1550,13 @@
"Microsoft.VisualStudio.Interop": "17.0.31902.203"
}
},
"copydependencies": {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is it lower case here?


<Target Name="CopyJars">
<ItemGroup>
<SourceJars Include="$(JarDownloadDir)\sonar-cfamily-plugin-$(EmbeddedSonarCFamilyAnalyzerVersion).jar" />

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we somehow centralize the list of dependencies between this and DownloadDependencies task? Currently, if we ever add another analyzer, we would need to modify these 2 targets + EmbeddedSonarAnalyzer.props file

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll add another ticket for this and we can tackle it if we have time in this sprint or we can handle it in a hardening sprint.

@@ -286,7 +286,7 @@

<ItemGroup>
<Content Include="DownloadedJars\*.jar">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did it not work without this?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or rather with this

@ugras-ergun-sonarsource ugras-ergun-sonarsource marked this pull request as draft March 11, 2024 10:06
@pavel-mikula-sonarsource pavel-mikula-sonarsource linked an issue Mar 11, 2024 that may be closed by this pull request
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

<ItemGroup Label="Sloop Dependencies">
<Content Include="$(MSBuildThisFileDirectory)$(JarsFolderName)\*.jar">
<IncludeInVSIX>True</IncludeInVSIX>
<VSIXSubPath>$(JarsFolderName)</VSIXSubPath>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this somehow related?

[ProvideBindingPath(SubPath = "secrets")]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see how these can be related. The one you referred is about loading assemblies, we are not interested in that here.

@@ -1533,6 +1533,9 @@
"Microsoft.VisualStudio.Interop": "17.0.31902.203"
}
},
"copydependencies": {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is it lowercase?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no idea it's auto generated.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some other stuff is also lowercase (e.g. "sonarqube.client"). Since it doesn't affect anything other than cosmetics on an auto-generated file I don't consider it as a problem.


<Target Name="CopyJars">
<ItemGroup>
<SourceJars Include="$(JarDownloadDir)\sonar-cfamily-plugin-$(EmbeddedSonarCFamilyAnalyzerVersion).jar" />

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this fail if it can't find any of those files?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, and I believe it's desired behaviour.

@ugras-ergun-sonarsource ugras-ergun-sonarsource merged commit 4e8a6b1 into feature/sloop-2 Mar 12, 2024
17 checks passed
@ugras-ergun-sonarsource ugras-ergun-sonarsource deleted the ue/package-jars branch March 12, 2024 13:04
ugras-ergun-sonarsource added a commit that referenced this pull request Apr 3, 2024
ugras-ergun-sonarsource added a commit that referenced this pull request Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Package the jar analyzers
2 participants